package com.example.zbh.lessona.eventbus;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.support.annotation.Nullable;

import de.greenrobot.event.EventBus;

/**
 * Created by zbh on 15/12/2.
 */
public class PlayService extends Service {

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return new MyBinder();
    }
    public class MyBinder extends Binder{
        public void sendMsg(){
            EventBus.getDefault().post(23);
        }
    }
}
